A precise calculation is done of the primordial nucleosynthesis constraint on the energy per length of ordinary and superconducting cosmic strings. A general formula is provided for the constraint on the string tension for ordinary strings. Using the current values for the various parameters that describe the evolution of loops, the constraint for ordinary strings is G mu less than 2.2 x 10 to the minus 5 power. Our constraint is weaker than previously quoted limits by a factor of approximately 5. For superconducting loops, with currents generated by primordial magnetic fields, the constraint can be less or more stringent than this limit, depending on the strength of the magnetic field. It is also found in this case that there is a negligible amount of entropy production if the electromagnetic radiation from strings thermalizes with the radiation background.